<?php
use Mailer\Base;
class NotificationMailer extends Base {
  public function forgot_password($to, $login, $password, $sent_at = false) {
    $this->subject = "Your password is...";
    $this->login = $login;
    $this->password = $password;
    $this->recipients = $to;
    $this->from = "a@b.com";
    $this->sent_on = ($sent_at) ? $sent_at : new DateTime();
    $this->headers = array(); 
  }
  
  /*
  def forgot_password(to, login, pass, sent_at = Time.now)
    @subject    = "Your password is ..."
    @body['login']=login
    @body['pass']=pass
    @recipients = to
    @from       = 'support@yourdomain.com'
    @sent_on    = sent_at
    @headers    = {}
  end
  */
}